package com.pattern.structural.adaptor.class2;

/**
 * @Description Adapter, class-type adapter , makes adaptee to implement target interface.
 * @Author Ping
 * @Date 2022/3/29 14:26
 **/
public class ClassAdapter extends HomeUsedElectricity implements EUsedElectricity{
    @Override
    public void chargeWith22V() {
        this.chargeWith220V();
        System.out.println("adapt 220 to 20v") ;
    }
}
